//index.vue
.income {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

//BoxIncome.vue
.box-income {
  width: 100%;
  height: auto;
  min-height: 150px;
  background: url("../../../../../assets/static/income-bg.png") no-repeat;
  background-size: 100% 100%;
  padding: 16px 28px;
  display: flex;
  // flex-wrap: wrap;
  align-content: space-between;

  .income-main {
    width: 100%;
    height: 116px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    .income-name {
      font-size: 14px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.8);
    }

    .income-value {
      font-size: 24px;
      font-weight: 600;
      color: rgba(255, 255, 255, 1);
    }
    .active-icon {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      color: #2b4fbe;
      font-size: 24px;
      opacity: 1;
      border-radius: 20px 0px 20px 0px;
      background: rgba(255, 255, 255, 1);
      box-sizing: border-box;
      right: 0;
      bottom: 0;
      z-index: 1;
      animation: borderAnimation 2s linear infinite;
    }
    @media screen and (max-width: 500px) {
      .income-name {
        font-size: 10px;
      }

      .income-value {
        font-size: 10px;
      }
      .active-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
      }
      .income-main {
        height: 50px;
      }
    }

    @media screen and(min-width: 501px) and (max-width: 768px) {
      .income-name {
        font-size: 12px;
      }

      .income-value {
        font-size: 12px;
      }
      .active-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
      }
    }

    @media screen and (min-width: 769px) and (max-width: 992px) {
      .income-name {
        font-size: 12px;
      }

      .income-value {
        font-size: 16px;
      }
      .active-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
      }
    }
    @media screen and (min-width: 993px) and (max-width: 1300px) {
      .income-name {
        font-size: 14px;
      }

      .income-value {
        font-size: 18px;
      }
      .active-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
      }
    }
  }
  .income-active {
    position: relative;
    background: rgba(43, 79, 190, 1);
    border: 1px solid rgba(43, 79, 190, 1);
  }
  @media screen and (min-width: 769px) {
    .income-main:nth-child(3n + 1) {
      margin-left: 0;
    }
  }
  @media screen and (max-width: 769px) {
    .income-main:nth-child(2n + 1) {
      margin-left: 0;
    }
  }
}
@media screen and (max-width: 991.5px) {
  .box-income {
    margin-top: 30px;
  }
}

//IncomeStatistics.vue
.income-statistics {
  width: 100%;
  height: auto;
  min-height: 150px;
  margin-top: 20px;
  border-radius: 24px;
  background: rgba(44, 37, 89, 1);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  ::v-deep .el-col {
    padding: 0 !important;
  }
  .statistics-main {
    border: 1px solid #19143d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    box-sizing: border-box;
    border-collapse: collapse;
    .statistics-name {
      font-size: 14px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.6);
    }

    .statistics-value {
      margin-top: 6px;
      font-size: 14px;
      font-weight: 500;
      color: rgba(255, 255, 255, 1);
    }
  }
  .cell:nth-child(21),
  .cell:nth-child(22),
  .cell:nth-child(23),
  .cell:nth-child(24) {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .box-income {
    flex-wrap: wrap;
    .income-main{
      margin: 16px 0;
    }
  }
  .income-statistics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
  }
  .statistics-main {
    .statistics-name {
      font-size: 12px;
    }

    .statistics-value {
      font-size: 12px;
    }
  }
}
